package com.cskaoyan.demo7.bean.resp;

import com.cskaoyan.demo7.bean.model.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @Description：
 * @Author：BLUEBLANK
 * @Date：2024/4/22 21:00
 */


@NoArgsConstructor
@Data
public class GoodsDetailVo {

    private List<SpecificationListDTO> specificationList;
    private List<MarketIssue> issue;
    private Integer userHasCollect;
    private CommentDTO comment;
    private Boolean share; // false
    private List<MarketGoodsAttribute> attribute;
    private MarketBrand brand;
    private List<MarketGoodsProduct> productList;
    private MarketGoods info;

    @NoArgsConstructor
    @Data
    public static class CommentDTO {
        private List<CommentDTO.DataDTO> data;
        private Integer count;

        @NoArgsConstructor
        @Data
        public static class DataDTO {
            private Date addTime;
            private List<String> picList;
            private String adminContent;
            private String nickname;
            private Integer id;
            private String avatar;
            private String content;
        }
    }



    @NoArgsConstructor
    @Data
    public static class SpecificationListDTO {
        private String name;
        private List<MarketGoodsSpecification> valueList;
    }

}
